/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.sistemas.sse.controller.representante;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import pe.edu.sistemas.sse.entity.Empresa;
import pe.edu.sistemas.sse.service.IJefeUBienestarService;

/**
 *
 * @author laptop-w8
 */
@ManagedBean(name = "uCBL002")
@ViewScoped
public class UCBL002SolicitarIngresoEmpresaBean implements Serializable {

    private Empresa empresa;
    @ManagedProperty(value = "#{jefeUBienestarService}")
    private IJefeUBienestarService jefeUBienestarService;

    /**
     * Creates a new instance of RegistrarEmpresaBean
     */
    public UCBL002SolicitarIngresoEmpresaBean() {
        empresa = new Empresa();
    }

    public String registrar() {
        jefeUBienestarService.registrarPresencialEmpresa(empresa);
        return "index";
    }

    public Empresa getEmpresa() {
        return empresa;
    }

    public void setEmpresa(Empresa empresa) {
        this.empresa = empresa;
    }

    public IJefeUBienestarService getJefeUBienestarService() {
        return jefeUBienestarService;
    }

    public void setJefeUBienestarService(IJefeUBienestarService jefeUBienestarService) {
        this.jefeUBienestarService = jefeUBienestarService;
    }

}
